<!-- 资产备品备件 -->

<template>
  <div>
    <MajorTitle title="备品备件信息" />

    <WebTable v-if="readyList" path="backup" noPage auto>
      <RowIndex />
      <RowText label="名称" bind="spareDto.spareName" />
      <RowText label="类型" bind="spareDto.spareTypeName" />
      <RowText label="型号" bind="spareDto.model" />
      <RowText label="所属仓库" bind="warehouseDto.warehouseName" />
      <RowNum label="数量" bind="stockNum" />
    </WebTable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DeviceBackup',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('backup')],

  /**
   * 销毁之前 (先抽取再调用)
   */
  beforeDestroy() {
    this.setList()
  },
}
</script>
